package com.sinosoft.dsp.component.bpm.viewbean.activity;

import com.sinosoft.dsp.platform.components.AbstractEditViewBean;
import com.sinosoft.dsp.platform.services.PlatformViewService;
import com.sinosoft.dsp.platform.utils.SinoManagedBean;
import com.sinosoft.dsp.system.core.exception.SinoException;
import com.sinosoft.dsp.system.to.IGenericTO;
import com.sinosoft.dsp.system.utils.Const;

public abstract class BpmAbstractActivityPartEditViewBean extends
		AbstractEditViewBean implements IBpmActivityPartEditViewBean {

	public static String BPM_TAB_LABEL_NAME = "label";

	public static String BPM_NODE_NAME = "nodeName";
	
	public static String BPM_NODE_TYPE = "nodeType";

	@Override
	public void init(IGenericTO tos) throws SinoException {
		super.init(tos);
		PlatformViewService pvs = SinoManagedBean
				.findBean("platformViewService");
		// 标题名称
		String label = pvs.getAttributeValueFromLayout(this.getLayout(),
				BPM_TAB_LABEL_NAME);
		this.putAttr(BPM_TAB_LABEL_NAME, Const.NVL(label,
				"service.bpm.activity.default.label"));

	}

}
